package com.projectc.db.entities;

import java.util.Date;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

@Entity
public class Comments {

	@EmbeddedId
	private CommentsPK idComment;
	@OneToOne
	private User user;
	
	private String commentText;
	private Date creationDate;
	private Date updateDate;

	public CommentsPK getIdComment() {
		return idComment;
	}

	public void setIdComment(CommentsPK idComment) {
		this.idComment = idComment;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getCommentText() {
		return commentText;
	}

	public void setCommentText(String commentText) {
		this.commentText = commentText;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

}
